<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html 		xmlns="http://www.w3.org/1999/xhtml"
			xmlns:ui="http://java.sun.com/jsf/facelets"
			xmlns:h="http://java.sun.com/jsf/html"
			xmlns:f="http://java.sun.com/jsf/core"
			xmlns:a4j="http://richfaces.org/a4j"
			xmlns:rich="http://richfaces.org/rich"
			xmlns:t="http://myfaces.apache.org/tomahawk">

	<head>
		<title>
			<h:outputText value="#{bundle.tituloAplicacao}" /> 
		</title>
		
		<link rel="stylesheet" type="text/css" href="/#{bundle.pathAplicacao}/css/geral.css" />
		<link rel="stylesheet" type="text/css" href="/#{bundle.pathAplicacao}/css/estilo.css" />
		
	</head>
	
	<body>
		<table style="width: 100%;">
			<tr style="height: 56px;">
				<td style="background-color: #CCCCCC">
				</td>
			</tr>
		</table>
		<table style="width: 100%;">
			<tr style="height: 20px;">
				<td style="background-color: gray;">
					<h:form id="menuForm">
                        <ui:insert name="menu">
                            <ui:include src="menu.xhtml"/>
                        </ui:insert>
                    </h:form>
				</td>
			</tr>
		</table>
		<table style="width: 100%;">
			<tr>
				<td>
					<h:panelGroup id="panelTitle">
		                <table class="messageTable">
		                    <tr>
		                        <td class="tituloform">
		                            <b>#{pageTitle}</b>
		                        </td>
		                    </tr>
		                    <tr>
		                        <td><ui:insert name="requiredFieldsMessage" /></td>
		                    </tr>
		                    <tr>
		                      <td>
		                        <a4j:outputPanel  ajaxRendered="true">
		                            <rich:messages layout="table" warnClass="msgWarm" errorClass="msgError" infoClass="msgInfo" globalOnly="true">
		                            	<f:facet name="errorMarker">
											<h:graphicImage value="/imagens/alerta.png"/>   
										</f:facet>
		                            </rich:messages>
		                        </a4j:outputPanel>
		                      </td>             
		                    </tr>
		                </table>
		            </h:panelGroup>
				                   
				                   
		            <br />
				    <a4j:form id="formulario">       
			            <a4j:loadScript src="/script/util.js" />
			             
			            <ui:insert name="saveStateObjects" />
						<ui:insert name="saveStateObjectsDefined" />
			         
			             <ui:insert name="content" />
			             
			             <ui:insert name="buttons">
			                 <div id="botao" style="visibility: visible;">
			                     <table class="buttonTable">
			                         <tr>
			                             <td class="buttonItem">
			                                 <ui:insert name="buttonItens"/>
			                             </td>
			                         </tr>
			                     </table>
			                 </div>
			             </ui:insert>
			             
			             <br />
			             
			             <ui:insert name="list"/>
		             </a4j:form>
				</td>
			</tr>
		</table>
	</body>
</html>